using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 通用配置管理器接口
/// 基于Json键值对配置文件的通用解析
/// </summary>
public interface IConfigManager
{
    /// <summary>
    /// 只读属性：应用设置
    /// 得到键值对集合数据
    /// </summary>
    Dictionary<string,string> AppSetting { get; }
    
    /// <summary>
    /// 得到配置文件(AppSetting)最大数量
    /// </summary>
    /// <returns></returns>
    int GetAppSettingMaxNumber();
    
}

[Serializable]
internal class KeyValueInfo
{
    public List<KeyValueNode> ConfigInfo = null;
}

[Serializable]
class KeyValueNode
{
    //键
    public string key = null;
    //值
    public string value = null;
}
